package com.heima.admin.service;

import com.heima.model.admin.dtos.AdSensitiveDto;
import com.heima.model.admin.dtos.AdSensitiveListDto;
import com.heima.model.common.dtos.ResponseResult;

/**
 * @author Franky
 * @version 1.0
 * @project heima-leadnews-shizhan
 * @description
 * @date 2023/9/17 10:00:36
 */
public interface SensitiveService {
    /**
     * 删除敏感词
     * @param id
     * @return {@link ResponseResult}
     */
    ResponseResult del(Integer id);

    /**
     * 查询敏感词列表
     * @param sensitiveListDto
     * @return {@link ResponseResult}
     */
    ResponseResult list(AdSensitiveListDto sensitiveListDto);

    /**
     * 保存敏感词
     * @param sensitiveDto
     * @return {@link ResponseResult}
     */
    ResponseResult save(AdSensitiveDto sensitiveDto);

    /**
     * 修改敏感词
     * @param sensitiveDto
     * @return {@link ResponseResult}
     */
    ResponseResult update(AdSensitiveDto sensitiveDto);
}
